import App from './App'

// #ifndef VUE3
import Vue from 'vue';
import {checkLogin,globalData,getAllColor} from '@/common/globaldata.js'
Vue.config.productionTip = false
Vue.prototype.$checkLogin =checkLogin
Vue.prototype.globalData =globalData
Vue.prototype.getAllColor =getAllColor

App.mpType = 'app'
import uView from "uview-ui";
import store from './store/index.js'
Vue.use(uView);


const app = new Vue({
	store,
    ...App
})

require('./config/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3


import { createSSRApp } from 'vue'

export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif